package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2021-03-23
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class Shopinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
//    @NotNull(message = "邮箱不能为空")
    @Pattern(regexp = "[1-9][0-9]{8,10}\\@[q][q]\\.[c][o][m]",message = "账号必须是邮箱格式")
    private String account;
     @Length(min = 10,max = 20,message = "长度为10-20")
    private String password;

    private Date registerTime;

    private String avator;

    private String status;

    private Date lastLoginTime;

    private String lastLoginIp;

    private String creditImage;

    private String creditOppoImage;

}
